package org.codeart.adapter.example;
    
public class Client {

    public static void main(String[] args) {
        Computer computer = new Computer();
        SDCard sdCard = new SDCardImpl();
        String data = computer.read(sdCard);
        System.out.println(data);
        
        sdCard = new SDCardAdapter();
        String data1 = computer.read(sdCard);
        System.out.println(data1);
        
        sdCard = new SDCardObjAdapter(new TFCardImpl());
        String data2 = computer.read(sdCard);
        System.out.println(data2);
    }
}
